<%@ include file="/common/taglibs.jsp" %>
<head>
	<title><spring:message code="member.orders.header"/></title>
</head>
<div class="ui-widget summary-booklist">
	<h1 class="ui-helper-reset ui-widget-header ui-corner-top booklist-header">
		<spring:message code="member.orders.header"/>
	</h1>
	<div class="ui-widget-content ui-corner-bottom">
	<display:table name="orders" cellspacing="0" cellpadding="0" requestURI="" 
    	defaultsort="1" id="order" pagesize="25" class="table" export="true">
    	
	    <display:column sortable="true" titleKey="member.orders.id" >
	    	<a href="order.html?orderId=${order.id}&previousPath=${previousPath}&seeOrderDetailsInfo=true">${order.id}</a>
	    </display:column>
	    	
	    <display:column escapeXml="true" sortable="true" titleKey="member.orders.createTime">
	    	<fmt:formatDate value="${order.createTime}" pattern="${datePattern}"/>
	    </display:column>
	    
	    <display:column sortable="true" titleKey="member.orders.status">
	    	<spring:message code="${sf:getOrderStatusMessageCode(order.status)}"/>
	    </display:column>
	    
	    <display:column titleKey="member.orders.payment.type" sortable="true">
	    	<spring:message code='${sf:getPaymentMessageCode(order.payment)}'/>
	    </display:column>
	    
	    <display:column titleKey="member.orders.payment.status" sortable="true">
	    	<c:choose>
	    		<c:when test="${order.payment.paid}">
	    			<spring:message code="member.orders.payment.status.yes"/>
	    		</c:when>
	    		<c:otherwise>
	    			<spring:message code="member.orders.payment.status.no"/>
	    		</c:otherwise>
	    	</c:choose>
	    </display:column>
	    
	    <display:column titleKey="member.orders.price" sortable="true">
	    	<c:out value="$${order.price}"/>
	    </display:column>
		
	    <display:setProperty name="paging.banner.item_name">
	    	<spring:message code="member.orders.item"/>
	    </display:setProperty>
	    <display:setProperty name="paging.banner.items_name">
	    	<spring:message code="member.orders.items"/>
	    </display:setProperty>
	
	    <display:setProperty name="export.excel.filename" value="Orders.xls"/>
	    <display:setProperty name="export.csv.filename" value="Orders.csv"/>
	    <display:setProperty name="export.pdf.filename" value="Orders.pdf"/>
	</display:table>
	</div>
</div>